package com.apinji.unionpay.service;

import com.apinji.common.domain.wrapper.Reply;
import com.apinji.unionpay.dto.ConsumeDto;
import com.apinji.unionpay.dto.ConsumeQueryDto;
import com.apinji.unionpay.dto.ConsumeSMSBackTokenDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by 轩辕夏夏 on 2017/7/4.
 */
public interface PayService {


    /**
     * 银联支付 获取短信验证码
     *
     * @param consumeSMSBackTokenDto
     * @return
     */
    Reply consumeSMSBackToken(ConsumeSMSBackTokenDto consumeSMSBackTokenDto);


    /**
     * 银联支付 token无跳转支付接口
     *
     * @param request
     * @param consumeDto
     * @return
     */
    Reply consume(HttpServletRequest request, ConsumeDto consumeDto);


    /**
     * 交易流水状态查询
     *
     * @param consumeQueryDto
     * @return
     */
    Reply consumeQuery(ConsumeQueryDto consumeQueryDto);
    Reply consumeQueryUni(ConsumeQueryDto consumeQueryDto);





    void backRcvResponse(HttpServletRequest request, HttpServletResponse response) throws Exception;

    String frontRcvResponse(HttpServletRequest request, HttpServletResponse response) throws Exception;





    //测试=============================================================
    String testPostData(String transactionRecordId, String postUrl);

}
